package com.smart.seata.order.service.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 *
 */
@FeignClient(value = "cloud-alibaba-seata-stock1", path = "/stock")
public interface StockService {

    @PutMapping("/")
    boolean update(@RequestParam Long productId, @RequestParam Long quantity);
}
